package com.example.springmvc3;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/gethtml")
@Controller
public class ControllerHtml {

    @ResponseBody
    @RequestMapping("/gethtml1")
    public Object getHtml(){
        return "/index.html";
    }
    @ResponseBody
    @RequestMapping("/gethtml2")
    public String getHtml2(){
        return "你还爱我吗";
    }
}
